package tests;

import common.AutotestUtils;
import jdk.jshell.execution.Util;
import org.openqa.selenium.By;

import java.io.IOException;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-02-22
 * Time: 17:51
 */
public class ListPage extends AutotestUtils {
    public static String url = "http://39.105.158.244:8080/blog_list.html";
    public ListPage(){
        super(url);
    }

    /**
     * 检查博客页面是否能正常显示
     */
    public void listPageLoadRight() throws IOException {
        driver.findElement(By.cssSelector("body > div.nav > a:nth-child(5)"));
        getScreenShot(getClass().getName());
    }
}
